package com.springboot.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableDiscoveryClient
@RestController
@RequestMapping(value = "/ribbon")
public class CloudServiceApplication {


	/**
	 * 获取博客名称API
	 *
	 * @return 相关信息
	 */
	@RequestMapping(value = "name", method = RequestMethod.GET)
	public String getMyBlogNameApi() {
		return "测试"+"该服务器端口号：8071";
	}
	public static void main(String[] args) {
		SpringApplication.run(CloudServiceApplication.class, args);
	}
}
